<?php

/* 客户条回访记录 returnslog */
class CustomerrecordModel extends BaseModel
{
    var $table  = 'customer_record';
    var $prikey = 'record_id';
    var $_name  = 'customerrecord';
    var $_relation  = array(
        // 一个客户条回访记录只能属于一个客户
        'belongs_to_customer' => array(
            'model'         => 'customer',
            'type'          => BELONGS_TO,
            'foreign_key'   => 'customer_id',
            'reverse'       => 'has_customerrecord',
        ),
    );
}

?>